package cn.sourcespro.shiro.dao;

import cn.sourcespro.shiro.crudparams.PageInfo;
import cn.sourcespro.shiro.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 角色权限 Mapper
 *
 * @author 张浩伟
 * @date 2018/07/12
 */
@Mapper
public interface RolePermissionMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(RolePermission record);

    RolePermission selectByPrimaryKey(Integer id);

    List<RolePermission> selectAll(PageInfo pageInfo);

    int batchInsert(List<RolePermission> list);

    List<RolePermission> batchQueryByIds(List<Integer> ids);

    List<RolePermission> batchQueryByUuids(List<String> uuids);

    int updateByPrimaryKey(RolePermission record);

    RolePermission findByUuid(String uuid);

    int selectCount(PageInfo pageInfo);

    int batchDeleteById(List<Integer> ids);

    int batchDeleteByUuid(List<String> uuids);

    int deleteByUuid(String uuid);
}